package com.zelix;

import java.awt.*;
import javax.swing.Action;
import javax.swing.JFrame;

public abstract class a3 extends g2
{

    protected JFrame d;
    private boolean e;

    public a3(JFrame jframe, String s)
    {
        this(jframe, s, true, null, null, null, null, null, null, null);
    }

    public a3(JFrame jframe, String s, Object obj)
    {
        this(jframe, s, true, obj, null, null, null, null, null, null);
    }

    public a3(JFrame jframe, String s, Object obj, Object obj1)
    {
        this(jframe, s, true, obj, obj1, null, null, null, null, null);
    }

    public a3(JFrame jframe, String s, Object obj, Object obj1, Object obj2)
    {
        this(jframe, s, true, obj, obj1, obj2, null, null, null, null);
    }

    public a3(JFrame jframe, String s, Object obj, Object obj1, Object obj2, Object obj3)
    {
        this(jframe, s, true, obj, obj1, obj2, obj3, null, null, null);
    }

    public a3(JFrame jframe, String s, Object obj, Object obj1, Object obj2, Object obj3, Object obj4)
    {
        this(jframe, s, true, obj, obj1, obj2, obj3, obj4, null, null);
    }

    public a3(JFrame jframe, String s, Object obj, Object obj1, Object obj2, Object obj3, Object obj4, 
            Object obj5)
    {
        this(jframe, s, true, obj, obj1, obj2, obj3, obj4, obj5, null);
    }

    public a3(JFrame jframe, String s, boolean flag, Object obj, Object obj1, Object obj2, Object obj3, 
            Object obj4, Object obj5, Object obj6)
    {
        super(s);
        d = jframe;
        e = flag;
        if(flag)
            jframe.setEnabled(false);
        fb fb1 = new fb(this);
        addWindowListener(fb1);
        a(obj, obj1, obj2, obj3, obj4, obj5, obj6);
    }

    protected abstract void f();

    public void g()
    {
        a(0, 0, true);
    }

    public final void a(int i, int j, boolean flag)
    {
        int k;
        int l;
label0:
        {
            Dimension dimension = getSize();
            if(flag)
            {
                Point point = d.getLocationOnScreen();
                Dimension dimension2 = d.getSize();
                k = (dimension2.width / 2 - dimension.width / 2) + point.x;
                l = (dimension2.height / 2 - dimension.height / 2) + point.y;
                k = Math.max(0, k) + i;
                l = Math.max(0, l) + j;
                if(!g2.b)
                    break label0;
            }
            Dimension dimension1 = Toolkit.getDefaultToolkit().getScreenSize();
            k = dimension1.width / 2 - dimension.width / 2;
            l = dimension1.height / 2 - dimension.height / 2;
            k = Math.max(0, k) + i;
            l = Math.max(0, l) + j;
        }
        setLocation(k, l);
        zz.a(this, true);
        toFront();
        h();
    }

    public void a()
    {
        super.a();
        if(e)
        {
            d.setEnabled(true);
            d.toFront();
        }
    }

    public void h()
    {
    }

    public Action d()
    {
        return new m1(this);
    }

    protected abstract void a(Object obj, Object obj1, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6);
}